//配置数据的结构
const { Schema, model } = require('mongoose');
const ownerSchema = new Schema({
    community_id: {
        type: Schema.Types.ObjectId,
        ref: "communityModel"
    },//小区
    ownerName:String//姓名
    , ownerIdentity:String//住户身份
    , ownerCheckTime:String//入住时间
    , ownerHomeNumber:String//房间号
    , gender:String//性别
    , ownerCardNumber:String//业主卡号
    , ownerPhone:String//手机号
    ,ownerIdentityCard:String//身份证
       
}, { versionKey: false });
//配置数据模型
const ownerModel = model('ownerModel', ownerSchema, 'owner');

//把配置的数据模型暴露出去
module.exports = {
    ownerModel
}